#!/bin/sh
#
# rm-all -- remove all docker labs
#

for name in `docker ps -a --format='{{.Names}}'`
do
    LOCAL_DESKTOP_SHORTCUT=~/Desktop/${name}.desktop
    [ -f $LOCAL_DESKTOP_SHORTCUT ] && rm -f $LOCAL_DESKTOP_SHORTCUT
done

docker ps -a --format='{{.ID}}' | xargs -i docker rm -f {} 2>&1
